import request from '@/utils/request'

// 查询银行卡bin列表
export function listCardbin(query) {
    return request({
        url: '/tool/cardbin/list',
        method: 'get',
        params: query
    })
}

// 查询银行卡bin详细
export function getCardbin(id) {
    return request({
        url: '/tool/cardbin/' + id,
        method: 'get'
    })
}

// 新增银行卡bin
export function addCardbin(data) {
    return request({
        url: '/tool/cardbin',
        method: 'post',
        data: data
    })
}

// 修改银行卡bin
export function updateCardbin(data) {
    return request({
        url: '/tool/cardbin',
        method: 'put',
        data: data
    })
}

// 删除银行卡bin
export function delCardbin(id) {
    return request({
        url: '/tool/cardbin/' + id,
        method: 'delete'
    })
}

// 导出银行卡bin
export function exportCardbin(query) {
    return request({
        url: '/tool/cardbin/export',
        method: 'get',
        params: query
    })
}
